import Vue from 'vue'  //vue
import Router from 'vue-router'  //vue路由
import index from '../components/index.vue'  //首页 行情页面
import jiaoyi from '../components/jiaoyi.vue' // 交易页面
import zhixun from '../components/zhixun.vue'  //资讯页面
import zhixundetail from '../components/zhixun/zhixunDetail'  //资讯页面详情
import info from '../components/info.vue'  //我的
import kline from '../components/jiaoyi/kline.vue' //K线图
import login from '../components/login/login.vue' //登陆
import register from '../components/login/register.vue' //注册
import forgetpwd from '../components/login/forgetPwd.vue' //忘记密码
import setpwd from '../components/login/setPwd.vue' //重新设置密码
import aboutus from '../components/info/aboutUs.vue' //关于我们
import invitefriends from '../components/info/inviteFriends.vue' //邀请好友
import personalcenter from '../components/info/personalCenter.vue' //个人中心
import qclist from '../components/info/qcList.vue' //抢筹明细
import recharge from '../components/info/recharge.vue' //充值
import security from '../components/info/security.vue' //安全中心
import withdrawal from '../components/info/withDrawal.vue' //提现

import securityemail from '../components/info/securityEmail.vue' //邮箱绑定
import securitypwd from '../components/info/securityPwd.vue' //  登录密码设置
import securitytpwd from '../components/info/securityTpwd.vue' //支付密码设置
import securityname from '../components/info/securityName.vue' //认证
import systemset from '../components/info/systemSet.vue' //系统设置
import cicanglist from '../components/jiaoyi/cicangList.vue' //持仓

Vue.use(Router)
//路由配置
export default new Router({
	routes:[
		{
		  path: '/',
		  name: '行情',
		  component: index
		},		
		{
			path:'/jiaoyi',
			name:'交易',
			component:jiaoyi
		},
		{
			path:'/zhixun',
			name:'资讯',
			component:zhixun
		},
		{
			path:'/zhixundetail',
			name:'资讯详情',
			component:zhixundetail
		},
		{
			path:'/info',
			name:'我的',
			component:info
		},
		{ 
			path:'/kline',
			name:'K线',
			component:kline
		},
		{ 
			path:'/login',
			name:'登陆',
			component:login
		},
		{ 
			path:'/register',
			name:'注册',
			component:register
		},
		{ 
			path:'/forgetpwd',
			name:'忘记密码',
			component:forgetpwd
		},
		{ 
			path:'/setpwd',
			name:'重设密码',
			component:setpwd
		},
		{ 
			path:'/personalcenter',
			name:'个人中心',
			component:personalcenter
		},
		{ 
			path:'/security',
			name:'安全中心',
			component:security
		},
		{ 
			path:'/qclist',
			name:'抢筹明细',
			component:qclist
		},
		{ 
			path:'/recharge',
			name:'账户充值',
			component:recharge
		},
		{ 
			path:'/withdrawal',
			name:'账户提现',
			component:withdrawal
		},
		{ 
			path:'/invitefriends',
			name:'邀请好友',
			component:invitefriends
		},
		{ 
			path:'/aboutus',
			name:'关于我们',
			component:aboutus
		},
		{ 
			path:'/securityemail',
			name:'邮箱设置',
			component:securityemail
		},
		{ 
			path:'/securitypwd',
			name:'登录密码设置',
			component:securitypwd
		},
		{ 
			path:'/securitytpwd',
			name:'支付密码设置',
			component:securitytpwd
		},
		{ 
			path:'/securityname',
			name:'实名认证',
			component:securityname
		},
		{ 
			path:'/systemset',
			name:'系统设置',
			component:systemset
		},
		{ 
			path:'/cicanglist',
			name:'持仓列表',
			component:cicanglist
		}
	]
})
